package com.hejjon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hejjon.core.domain.entity.BusinessAttr;
import com.hejjon.domain.vo.BusinessAttrVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: cs
 * @date: 2025-04-17 14:38:03
 * @since: 1.0
 */
public interface BusinessAttrMapper extends BaseMapper<BusinessAttr> {

    /**
     * 根据分类id查询业务属性列表
     * @param categoryId
     * @return
     */
    List<BusinessAttrVO> selectByCategoryId(@Param("categoryId") String categoryId);

    /**
     * 分类id
     * @param categoryId
     * @return
     */
    Integer existByCategoryId(@Param("categoryId") String categoryId);


    List<BusinessAttrVO> selectByCategoryIdList(@Param("categoryIds") List<String> categoryIds);


    Integer updateDeleteFlagByIds(@Param("ids") List<String> ids, @Param("deleteFlag") String deleteFlag);

}
